package com.bridgeintelligent.tag.engine.mvc.service;

import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramInterval;

import java.io.IOException;

/**
 * @description
 * @author: grp 2020-10-26 14:56
 **/
public interface IGroupService {

    /**
     * 获取默认分组间隔 指标
     * @return
     */
    Double getNumberInterval(String dimIdColumn, QueryBuilder queryBuilder,String indexId) throws IOException;

    /**
     * 获取默认分组间隔 日期
     * @return
     */
    DateHistogramInterval getDateInterval(String dimIdColumn, QueryBuilder queryBuilder,String indexId) throws IOException;
}
